package com.itheima.service.Impl;

import com.itheima.dao.Impl.UserDaoImpl;
import com.itheima.dao.UserDao;
import com.itheima.domain.User;
import com.itheima.service.UserService;

import java.util.List;

public class UserServiceImpl implements UserService {

    @Override
    public List<User> findAll() {
        UserDao dao = new UserDaoImpl();
        return dao.findAll();
    }

    @Override
    public void add(User user) {
        UserDao dao = new UserDaoImpl();
        dao.add(user);
    }


}
